install:fedora
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
install:fedora [2014-09-09 18:26] – 200.46.38.75 | install:fedora [2024-04-26 17:03] (current) – [Solution 3] 2a02:8012:102b:0:120b:db7:2bbd:6bc | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Fedora Package ====== | ====== Fedora Package ====== | ||
- | DokuWiki is available in the Fedora repositories. These instructions are written for Fedora 19, there may be differences for other versions. Do/ | + | DokuWiki is available in the Fedora repositories. These instructions are written for Fedora 19, there may be differences for other versions. Do |
- | | + | |
The package '' | The package '' | ||
- | Package details are available at https:// | + | Package details are available at https:// |
===== httpd ===== | ===== httpd ===== | ||
Line 92: | Line 92: | ||
Tried with Fedora 20 on 2014-02-17. | Tried with Fedora 20 on 2014-02-17. | ||
+ | |||
+ | |||
+ | ==== Solution 3 ==== | ||
+ | |||
+ | The Fedora '' | ||
+ | |||
+ | < | ||
+ | semanage fcontext -a -t httpd_sys_rw_content_t '/ | ||
+ | semanage fcontext -a -t httpd_sys_content_t '/ | ||
+ | semanage fcontext -a -t httpd_sys_rw_content_t '/ | ||
+ | restorecon -R '/ | ||
+ | restorecon -R '/ | ||
+ | </ | ||
+ | |||
+ | In addition, The Fedora dokuwiki package places the '' | ||
+ | |||
+ | < | ||
+ | $ ls -laZ / | ||
+ | total 12 | ||
+ | drwxr-xr-x. | ||
+ | drwxr-xr-x. 28 root | ||
+ | drwxr-xr-x. 13 apache apache system_u: | ||
+ | </ | ||
+ | |||
+ | Based on the above, the following policies should be needed when installing dokuwiki from the original tarball under / | ||
+ | |||
+ | < | ||
+ | semanage fcontext -a -t httpd_sys_content_t '/ | ||
+ | semanage fcontext -a -t httpd_sys_rw_content_t '/ | ||
+ | semanage fcontext -a -t httpd_sys_rw_content_t '/ | ||
+ | semanage fcontext -a -t httpd_sys_rw_content_t '/ | ||
+ | </ | ||
+ | ==== Solution 4 ==== | ||
+ | The '' | ||
+ | |||
+ | chcon -t httpd_sys_rw_content_t / | ||
+ | chcon -t httpd_sys_content_t / | ||
+ | chcon -t httpd_sys_rw_content_t / | ||
+ | |||
+ | You can restore default SELinux context for this files by running: | ||
+ | restorecon -R '/ | ||
+ | restorecon -R '/ | ||
+ | restorecon -R '/ | ||
+ | |||
+ | ====== Install the package downloaded from the website ====== | ||
+ | |||
+ | See [[https:// |
install/fedora.1410279964.txt.gz · Last modified: 2014-09-09 18:26 by 200.46.38.75